from django.contrib import admin
from brewing.models import *


class ActionInline(admin.TabularInline):
    model=Action

class IngredientInline(admin.TabularInline):
    model=Ingredient

class BrewAdmin(admin.ModelAdmin):
    model=Brew
    inlines = (ActionInline,)

class RecipeAdmin(admin.ModelAdmin):
    model=Recipe
#    inlines=(IngredientInline,)

class IngredientAdmin(admin.ModelAdmin):
    model=Ingredient

admin.site.register(Recipe, RecipeAdmin)
admin.site.register(Brew, BrewAdmin)
admin.site.register(Ingredient)
admin.site.register(Substance)
